package com.hyw.supply.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 供应商账户信息
 * </p>
 *
 * @author zzp
 * @since 2024-03-14
 */
@Getter
@Setter
@TableName("supply_account")
public class SupplyAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(title = "id", description = "用户名")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(title = "name", description = "名称")
    private String name;

    @Schema(title = "account", description = "登录账户")
    private String account;

    @Schema(title = "password", description = "登录密码")
    private String password;

    @Schema(title = "enterprise", description = "企业名称")
    private String enterprise;

    @Schema(title = "admined", description = "是否为管理员true是false否")
    @TableField("is_admin")
    private Boolean admined;

    @Schema(title = "createTime", description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(title = "updateTime", description = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
